#include "TXLib.h"
#include <iostream>

void Figure (float x, float y, float n);
int main ()
{
  	float x, y, n;
		std::cout << "Enter x: ";
		std::cin >> x;

		std::cout << "Enter y: ";
		std::cin >> y;
		
		std::cout << "Enter n: ";
		std::cin >> n;
		
		txCreateWindow (500, 500);
		
		Figure (x, y, n);		
}
	void Figure (float x, float y, float n)
{
     txSetFillColor (RGB(255,255,0));
     txSetColor (RGB(255,255,0));
	txRectangle (x, y, (x+50)*n, (y+50)*n);
	
	txRectangle (x, (y+50)*n, (x+150)*n, (y+100)*n);
	
	txRectangle ((x+100), y, (x+150)*n, (y+50)*n);
}